package com.lizhenhua.orderclose.controller;


import com.lizhenhua.orderclose.service.OrderCloseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderCloseController {

    @Autowired
    private OrderCloseService service;

    @GetMapping("/order/close")
    public int closeOrder(@RequestParam("orderId") String orderId, @RequestParam("closeType") int closeType) {


        return  service.closeOrder(orderId, closeType);
    }

}
